import request from '@/utils/request'

// 查询配送员订单信息列表
export function listRiderOrder(query) {
  return request({
    url: '/rider/riderOrder/list',
    method: 'get',
    params: query
  })
}

// 查询配送员订单信息详细
export function getRiderOrder(id) {
  return request({
    url: '/rider/riderOrder/' + id,
    method: 'get'
  })
}

// 新增配送员订单信息
export function addRiderOrder(data) {
  return request({
    url: '/rider/riderOrder',
    method: 'post',
    data: data
  })
}

// 修改配送员订单信息
export function updateRiderOrder(data) {
  return request({
    url: '/rider/riderOrder',
    method: 'put',
    data: data
  })
}

// 删除配送员订单信息
export function delRiderOrder(id) {
  return request({
    url: '/rider/riderOrder/' + id,
    method: 'delete'
  })
}
